package com.zcf.service.impl;

import com.nanyang.dao.PromotionDao;
import com.nanyang.entity.Promotion;
import com.nanyang.service.PromotionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PromotionServiceImpl implements PromotionService {

    @Autowired
    private PromotionDao promotionDao;

    @Override
    public Promotion finfById(Integer id) {
        Promotion one = promotionDao.getOne(id);
        return one;
    }
}
